<%-- 
    Document   : pestanas
    Created on : 11-nov-2010, 10:04:28
    Author     : David y Álvaro
--%>

<%@page import="java.util.ResourceBundle"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<br>
<div id="pestanas">
<form action="visualizar-curso-accion.do" name="pestanasForm" method="POST">
    <input type="hidden" name="idCurso" id="idCurso" value="<%if (request.getParameter("idCurso")!= null) {%><%=request.getParameter("idCurso")%><%}else{%><%=request.getAttribute("idCurso")%><%}%>" />
    <input type="hidden" name="idPestana" id="idPestana" value="<%if (request.getParameter("idPestana")!= null) {%><%=request.getParameter("idPestana")%><%}else{%>1<%}%>" />
    <ul>
        <li <%if (request.getParameter("idPestana")== null || request.getParameter("idPestana").trim().equals("1")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasForm.idPestana.value='1';document.pestanasForm.submit()">Alumnos</a></li>
        <li <%if (request.getParameter("idPestana")!= null && request.getParameter("idPestana").trim().equals("2")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasForm.idPestana.value='2';document.pestanasForm.submit()">Calendario</a></li>
        <li <%if (request.getParameter("idPestana")!= null && request.getParameter("idPestana").trim().equals("3")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasForm.idPestana.value='3';document.pestanasForm.submit()">M&oacute;dulos</a></li>
        <li <%if (request.getParameter("idPestana")!= null && request.getParameter("idPestana").trim().equals("4")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasForm.idPestana.value='4';document.pestanasForm.submit()">Entrega</a></li>
    </ul>
</form>
    <%-- Código viejo
    <ul>
        <li class="activa"><a href="visualizar-curso-accion.do<%if (request.getParameter("idCurso")!=null){%><%="?idCurso="+(String)request.getParameter("idCurso")%><%}%>">Alumnos</a></li>
        <li><a href="#">Calendario</a></li>
        <li><a href="#">M&oacute;dulos</a></li>
    </ul>
        --%>
</div>

<div id="contenedorpestanas">
    <%
        String contenidoCurso=null;
        ResourceBundle bundle=(ResourceBundle)application.getAttribute("acciones-mapeo");
        //ResourceBundle bundle=(ResourceBundle)application.getAttribute("vistas-mapeo");
        if (request.getAttribute("contenido-curso")==null){

         contenidoCurso=bundle.getString("menu-principal");
        }else{
            contenidoCurso=bundle.getString((String)request.getAttribute("contenido-curso"));
        }
    %>
    <jsp:include page="<%= contenidoCurso %>" flush="true" />
</div>


